<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Order extends Model
{
    protected $table = "order";
    protected $guarded = [];

    public function orderGoods(){
        return $this->hasMany(OrderGoods::class,'order_id','id');
    }

    public function user(){
        return $this->belongsTo(User::class,'userid','id');
    }
}
